package com.ymatou.shop.ui.activity;

import android.view.View;
import android.widget.ListView;

import com.ymatou.shop.R;
import com.ymatou.shop.model.IItem;
import com.ymatou.shop.ui.adapter.BaseAdapter;
import com.ymatou.shop.ui.view.PullToRefreshView;

public abstract class BaseHeaderListActivity extends BaseHeaderActivity {
	
	private PullToRefreshView mPullToRefreshView;
	private ListView mListView;
	
	@Override
	protected void setupViews() {
		super.setupViews();
		mPullToRefreshView = (PullToRefreshView) findViewById(R.id.pull_to_refresh_listview);
		mListView = (ListView) findViewById(R.id.listview);
		//mListView.setEmptyView(findViewById(android.R.id.empty));
		//mListView.setOnItemClickListener(this);
		//mListView.setOnScrollListener(new ListViewOnScrollListener());

	}
	
	public ListView getListView() {
		return mListView;
	}
	
	protected PullToRefreshView getPullToRefreshView() {
		return mPullToRefreshView;
	}
	
	@Override
	public View[] getContentViews() {
		return new View[] { mPullToRefreshView };
	}
	
	public abstract BaseAdapter getAdapter();
}
